#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QHash>
#include <QFileDialog>
#include <QProcess>
#include <QMessageBox>

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
private slots:
    void RootDirPicker();
    void TraverseSDKDir();
    void hideProgress();
    void processTarget();
    void on_actionAbout_Qt_triggered() { QMessageBox::aboutQt(this, "About Qt"); }
private:
//    void addToTemplate(QString key, QString value);
    void addToTemplate(QList<QPair<QString, QString> > list);
    Ui::MainWindow *ui;
    QHash<QString, QString> targetdirs;
    QFileDialog* qfd;
    QString html;
    QString sectionstr;
    QString rowstr;
    QHash<QString, QString> platformIdentifier;
    QHash<QString, QString> platformFound;
    QProcess* qmake;
    QProcess* find;
};

#endif // MAINWINDOW_H
